<template>
<div>
  <p>名称:<input type="text" v-model="form.name"></p>
  <p>用户名:<input type="text" v-model="form.username"></p>
  <p>密码:<input type="text" v-model="form.password"></p>
  <select name="" id="" v-model="form.cla">
    <option :value="i.id" v-for="i in clalist">{{i.name}}</option>
  </select>
  <button @click="register">提交</button>
</div>
</template>

<script>
export default {
  name: "stu_login",
  data(){
    return{
      clalist:[],
      form:{}
    }
  },
  methods:{
    getClalist(){
      this.$axios.get('showcourse/').then(res=>{
        console.log(res.data)
        this.clalist = res.data.list
      })
    }
  },
  mounted() {
  }

}
</script>

<style scoped>

</style>
